package com.stool.cloud.config;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.stereotype.Component;

/**
 * @author Felix YF Dong
 * @Description
 * @Date 2023/2/9
 */
@Component
public class SentinelFlowLimitHandler {

    public static String handlerException1(BlockException ex) {
        return "接住了1";
    }

    public static String handlerException2(BlockException ex) {
        return "接住了2";
    }
}
